<?php use_helper('Form')?>
<?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.2.6.js') ?>
<?php use_javascript('/sfFormExtraPlugin/js/jquery.autocompleter.js') ?>
<?php use_stylesheet('/sfFormExtraPlugin/css/jquery.autocompleter.css') ?>

<h2>Revisar nominaciones de <?php echo $categoria->getNombre()?></h2>

<form method="post" action="<?php echo url_for('corregir/exec?cat='.$categoria->getId())?>">
	<ul>
		<?php foreach($nominados as $nom):?>
			<li><input type="checkbox" name="<?php echo $nom->getId()?>" id="<?php echo $nom->getId()?>" /><?php echo $nom->getNombre()?>
			<?php foreach($fotos["_".$nom->getId()] as $f):?>
				<?php if($f->getFile()!=""):?>
					<br/>
					<input type="checkbox" id="<?php echo $nom->getId()."_".$f->getIdUsuario()?>" name="<?php echo $nom->getId()."_".$f->getIdUsuario()?>" />
					<img src="/uploads/<?php echo $f->getFile()?>"/>
				<?php endif;?>
			<?php endforeach;?>
			</li>
		<?php endforeach;?>
	</ul>
	<?php echo $form->render()?>
	<select name="accion" id="accion">
		<option value="delete" selected="selected">Eliminar</option>
		<option value="group">Agrupar/Validar</option>
	</select>
	<?php echo submit_tag('Plomo!')?>
</form>